overlay: Silence gcc warnings
authorBenjamin Otte <otte@redhat.com>
Tue, 23 Apr 2013 18:13:33 +0000 (14:13 -0400)
committerBenjamin Otte <otte@redhat.com>
Tue, 23 Apr 2013 18:13:51 +0000 (14:13 -0400)
gtk/gtkoverlay.c

index c69e104556f51001561268a13de030b536d9652f..75ca60d9d5b0c5ee8f3f385fe08cdcbba8987a3c 100644 (file)
@@ -399,6 +399,10 @@ gtk_overlay_get_child_position (GtkOverlay    *overlay,
     case GTK_ALIGN_END:
       alloc->x += main_alloc.width - req.width;
       break;
+    case GTK_ALIGN_BASELINE:
+    default:
+      g_assert_not_reached ();
+      break;
     }
 
   alloc->y = main_alloc.y;
@@ -418,6 +422,10 @@ gtk_overlay_get_child_position (GtkOverlay    *overlay,
     case GTK_ALIGN_END:
       alloc->y += main_alloc.height - req.height;
       break;
+    case GTK_ALIGN_BASELINE:
+    default:
+      g_assert_not_reached ();
+      break;
     }
 
   return TRUE;